package com.df.excel_export.validator.vadator_impl.script;

import com.df.excel_export.common.ExcelTable;
import com.df.excel_export.validator.AbstractIFieldValidator;
import com.df.excel_export.validator.IFieldValidator;
import com.df.excel_export.validator.IValidatorFactory;

import java.util.List;

//脚本校验器
public class ScriptIFieldValidator extends AbstractIFieldValidator implements IValidatorFactory {

    private String scriptName;
    private String scripType;
    private String scriptPath;//脚本路径


    @Override
    public boolean support(String filedType, String ruleStr) {
        //TODO 根据脚本类型执行脚本的对应方法
        return false;
    }

    @Override
    public IFieldValidator create(String filedType, String ruleStr) {

        return null;
    }

    @Override
    public Integer getPriority() {
        return 0;
    }

    @Override
    public boolean validate(ExcelTable checkTable, List<Object> rowData, Integer dataDowIndex, Integer fieldIndex, String fieldName, String fieldTypeStr, Object filedValue) {
        //TODO 根据脚本类型执行脚本的对应方法
        return false;
    }
}
